package forward.api;

import net.minecraft.entity.Entity;

public class EventAttack extends Event {

    public static Entity entity;
    private boolean preAttack;
    public EventAttack(Entity targetEntity, boolean preAttack2) {
        this.entity = targetEntity;
        this.preAttack = preAttack2;
    }
    public void fire(Entity targetEntity, boolean preAttack) {
        this.entity = targetEntity;
        this.preAttack = preAttack;
        super.fire();
    }

    public Entity getEntity() {
        return this.entity;
    }

   /* public boolean isPreAttack() {
    return this.preAttack;
    }

    public boolean isPostAttack() {
    return !this.preAttack;
    }*/
}